package com.zkx.blogweb.mapper.service;

import com.zkx.blogweb.entity.IdArticle;
import com.zkx.blogweb.mapper.IdArticleMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zkx
 */
@Transactional
@Service
public class PassageMapperImp {

    @Resource
    IdArticleMapper idArticleMapper;

    public List<IdArticle> getAllIdArtivle(){
        List<IdArticle> idArticles = idArticleMapper.selectByExample(null);
        if(idArticles==null){
            System.out.println("yes");
        }
        return idArticles;
    }


}
